package com.shengapp.models;

/**
 * @Author: sheng-app
 * @Date: 2021/7/26 11:59
 */
public class Config {

    public String key;
    public String secret;
    public String url;

    public Config() {

    }


    public Config(String key, String secret, String url) {
        this.key = key;
        this.secret = secret;
        this.url = url;
    }

    public Config(String key, String secret, boolean isTest) {
        this.key = key;
        this.secret = secret;
        String productUrl = "https://api.shenga.co/api";
        String testUrl = "http://api.test.shenga.co/api";
        this.url = isTest ? testUrl : productUrl;
    }


    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
